package com.shelpe.services.sinbad.repository.jpa;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;

import com.shelpe.services.sinbad.entity.jpa.AdgroupSearchCrowd;

public interface AdgroupSearchCrowdRepository extends PagingAndSortingRepository<AdgroupSearchCrowd, AdgroupSearchCrowd.AdgroupSearchCrowdPK> {

	List<AdgroupSearchCrowd> findByAdgroupID(long adgroupID);

	AdgroupSearchCrowd findByTargetID(long targetID);

	@Transactional
	List<AdgroupSearchCrowd> deleteByAdgroupID(long adgroupID);
}
